<template>
    <div>
        <h1>缓存工具localStorage</h1>
        <p>统一全平台使用习惯</p>

        <!-- 注册 -->
        <h3>get-获取（返回）</h3>
        <h3>set-设置</h3>
        <h3>remove-删除</h3>
        <h3>clear-清空</h3>
        <div class="code">
            CookieL.set('test', '666')
            <br />
            CookieL.set('test1', '333', { expire: 10 })//设置10秒后过期
            <br />
            const val = CookieL.get('test')
            <br />
            console.log(val) //666
            <br />
            CookieL.remove('test')
            <br />
            CookieL.clear()
            <br />
        </div>
    </div>
</template>
<script setup lang="ts">
</script>
<style lang="less" scoped></style>
